﻿using Sustainalytics.Caching;
using Sustainalytics.Caching.L;
using System.Configuration;

namespace Sustainalytics.Claims
{
    public class ClaimsL2Cache : L2Cache, IClaimsL2Cache
    {
        static string _connectionString;
        static int _database;

        static ClaimsL2Cache()
        {
            _connectionString = ConfigurationManager.AppSettings["RedisServer"];
            _database = 0;
        }
        
        public ClaimsL2Cache()
            :base(new AppRedisCache(_connectionString, _database))
        {

        }

        public ClaimsL2Cache(IAppCache cache)
            :base(cache)
        {

        }
    }
}
